import Myrequest from '@/common/Myrequest.js'

//绑定用户
export const BindUser = (data) => {
	return Myrequest({
		URL: '/chat/bindUser',
		Method: 'POST',
		Data: data
	})
}
//获取未读消息
export const GetUnreadMsg = () => {
	return Myrequest({
		URL: '/chat/getUnreadMsg',
		Method: 'post'
	})
}

export const sendMsg = (data) => {
	return Myrequest({
		URL: '/chat/sendMsg',
		Method: 'post',
		Data: data
	})
}